#CC=aarch64-linux-gcc
#CFLAGS_=-I /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/
#CFLAGS_ += -I /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/libdrm/
#LDFLAGS_=-L /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/

#CFLAGS_=-I /opt/poky/3.4+snapshot/sysroots/cortexa57-poky-linux/usr/include/
#CFLAGS_ += -I /opt/poky/3.4+snapshot/sysroots/cortexa57-poky-linux/usr/include/libdrm/
#LDFLAGS_=-L /opt/poky/3.4+snapshot/sysroots/cortexa57-poky-linux/usr/lib/

CFLAGS_=-I /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/include/
CFLAGS_ += -I /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/include/libdrm/
LDFLAGS_=-L /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/lib

FLAGS=-ldrm
all:
	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  main.c framebuffer.c -o drm-framebuffer

.PHONY: clean
clean:
	rm -f *.o modeset
